package main.Q1101_1200;

public class Q1151_1160 {
	public static void main(String[] args) {
		System.out.println("Question1151：");
		System.out.println("Question1152：");
		System.out.println("Question1153：");
		System.out.println("Question1154：一年中的第几天");
		System.out.println("Question1155：");
		System.out.println("Question1156：");
		System.out.println("Question1157：");
		System.out.println("Question1158：");
		System.out.println("Question1159：");
		System.out.println("Question1160：");
	}
}

class Question1154{
	public int dayOfYear(String date) {
		String[] dates = date.split("-");
		int year=Integer.parseInt(dates[0]);
		int month=Integer.parseInt(dates[1]);
		int day=Integer.parseInt(dates[2]);
		int[] months={31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
		if (year%400==0 || (year%4==0&&year%100!=0)) months[1]++;
		int count=0;
		for (int i=0;i<month-1;i++) count+=months[i];
		count+=day;
		return count;
	}
}